package demo

import (
	"fmt"
	"io/ioutil"

	aepapi "gitee.com/dell_software_department/ctwing_sdk/apis/Usr"
)

func SdkDownload_Demo() {
	resp, err := aepapi.SdkDownload("dFI1lzE0EN2", "xQcjrfNLvQ", "", "", "", "")

	if err != nil {
		fmt.Println("SdkDownload err:", err)
		return
	}
	fmt.Println("code:", resp.StatusCode, "\nerr:", err)
	bodyStr, err1 := ioutil.ReadAll(resp.Body)
	if err1 != nil {
		fmt.Println("ioutil.ReadAll err:", err1)
		return
	}
	fmt.Println(string(bodyStr))

	defer resp.Body.Close()
}
